package com.example.business_oa.controller;

import com.example.business_oa.service.ZfDimissionService;
import com.example.comment_oa.pojos.Dimission;
import com.example.comment_oa.response.AjaxResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/businessOa")
public class ZfDimissionController {
    @Resource
    ZfDimissionService zfDimissionService;

    // 申请离职新增一条数据
    @PostMapping("Dimission/shenqinglizhi")
    public AjaxResponse shenqinglizhi(@RequestBody Dimission dimission){
        System.err.println(dimission.getEmpId());
        int i = zfDimissionService.shenqinglizhi(dimission);
        return AjaxResponse.success(i);
    }
}
